<template>
  <div class="box">
    <div>
      {{ obj }}
    </div>

    <button @click="handleObj">age+1</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  setup(props) {
    console.log(props.obj);
    console.log(props);

    return {
    };
  },
  props: {
    obj: Object,
    handleObj:Function
  },
});
</script>

<style scoped>
.box {
  border: 1px solid red;
}
</style>